﻿namespace Web.Infrastructure.Models
{
    public class ErrorModel
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ErrorModel" /> class.
        /// </summary>
        public ErrorModel()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ErrorModel" /> class.
        /// </summary>
        /// <param name="error">The error.</param>
        public ErrorModel(string error)
        {
            Message = error;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ErrorModel" /> class.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="error">The error.</param>
        public ErrorModel(string key, string error)
        {
            Message = error;
            Key = key;
        }

        public string Key { get; set; }

        public string Message { get; set; }
    }
}
